home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1998-10-28 | 5.6 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
100%
| file
| Emacs/XEmacs v19 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 65 72 69 6b 40 6e 61 |piled by| erik@na|
|00000020| 67 67 75 6d 2e 6e 6f 20 | 6f 6e 20 53 75 6e 20 4a |ggum.no |on Sun J|
|00000030| 61 6e 20 31 34 20 30 36 | 3a 32 38 3a 33 32 20 31 |an 14 06|:28:32 1|
|00000040| 39 39 36 0a 3b 3b 3b 20 | 66 72 6f 6d 20 66 69 6c |996.;;; |from fil|
|00000050| 65 20 2f 67 64 2f 67 6e | 75 2f 65 6d 61 63 73 2f |e /gd/gn|u/emacs/|
|00000060| 31 39 2e 30 2f 6c 69 73 | 70 2f 72 65 67 69 2e 65 |19.0/lis|p/regi.e|
|00000070| 6c 0a 3b 3b 3b 20 65 6d | 61 63 73 20 76 65 72 73 |l.;;; em|acs vers|
|00000080| 69 6f 6e 20 31 39 2e 33 | 30 2e 37 30 2e 36 2e 0a |ion 19.3|0.70.6..|
|00000090| 3b 3b 3b 20 62 79 74 65 | 63 6f 6d 70 20 76 65 72 |;;; byte|comp ver|
|000000a0| 73 69 6f 6e 20 46 53 46 | 20 32 2e 31 30 0a 3b 3b |sion FSF| 2.10.;;|
|000000b0| 3b 20 6f 70 74 69 6d 69 | 7a 61 74 69 6f 6e 20 69 |; optimi|zation i|
|000000c0| 73 20 6f 6e 2e 0a 3b 3b | 3b 20 74 68 69 73 20 66 |s on..;;|; this f|
|000000d0| 69 6c 65 20 75 73 65 73 | 20 6f 70 63 6f 64 65 73 |ile uses| opcodes|
|000000e0| 20 77 68 69 63 68 20 64 | 6f 20 6e 6f 74 20 65 78 | which d|o not ex|
|000000f0| 69 73 74 20 69 6e 20 45 | 6d 61 63 73 20 31 38 2e |ist in E|macs 18.|
|00000100| 0a 0a 28 69 66 20 28 61 | 6e 64 20 28 62 6f 75 6e |..(if (a|nd (boun|
|00000110| 64 70 20 27 65 6d 61 63 | 73 2d 76 65 72 73 69 6f |dp 'emac|s-versio|
|00000120| 6e 29 0a 09 20 28 6f 72 | 20 28 61 6e 64 20 28 62 |n).. (or| (and (b|
|00000130| 6f 75 6e 64 70 20 27 65 | 70 6f 63 68 3a 3a 76 65 |oundp 'e|poch::ve|
|00000140| 72 73 69 6f 6e 29 20 65 | 70 6f 63 68 3a 3a 76 65 |rsion) e|poch::ve|
|00000150| 72 73 69 6f 6e 29 0a 09 | 20 20 20 20 20 28 73 74 |rsion)..| (st|
|00000160| 72 69 6e 67 2d 6c 65 73 | 73 70 20 65 6d 61 63 73 |ring-les|sp emacs|
|00000170| 2d 76 65 72 73 69 6f 6e | 20 22 31 39 2e 32 39 22 |-version| "19.29"|
|00000180| 29 29 29 0a 20 20 20 20 | 28 65 72 72 6f 72 20 22 |))). |(error "|
|00000190| 60 72 65 67 69 2e 65 6c | 27 20 77 61 73 20 63 6f |`regi.el|' was co|
|000001a0| 6d 70 69 6c 65 64 20 66 | 6f 72 20 45 6d 61 63 73 |mpiled f|or Emacs|
|000001b0| 20 31 39 2e 32 39 20 6f | 72 20 6c 61 74 65 72 22 | 19.29 o|r later"|
|000001c0| 29 29 0a 0a 0a 23 40 33 | 36 31 20 52 65 74 75 72 |))...#@3|61 Retur|
|000001d0| 6e 20 74 68 65 20 63 68 | 61 72 61 63 74 65 72 20 |n the ch|aracter |
|000001e0| 70 6f 73 69 74 69 6f 6e | 20 61 74 20 76 61 72 69 |position| at vari|
|000001f0| 6f 75 73 20 62 75 66 66 | 65 72 20 70 6f 73 69 74 |ous buff|er posit|
|00000200| 69 6f 6e 73 2e 0a 4f 70 | 74 69 6f 6e 61 6c 20 50 |ions..Op|tional P|
|00000210| 4f 53 49 54 49 4f 4e 20 | 63 61 6e 20 62 65 20 6f |OSITION |can be o|
|00000220| 6e 65 20 6f 66 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |ne of th|e follow|
|00000230| 69 6e 67 20 73 79 6d 62 | 6f 6c 73 3a 0a 0a 60 62 |ing symb|ols:..`b|
|00000240| 6f 6c 27 20 20 3d 3d 20 | 62 65 67 69 6e 6e 69 6e |ol' == |beginnin|
|00000250| 67 20 6f 66 20 6c 69 6e | 65 0a 60 62 6f 69 27 20 |g of lin|e.`boi' |
|00000260| 20 3d 3d 20 62 65 67 69 | 6e 6e 69 6e 67 20 6f 66 | == begi|nning of|
|00000270| 20 69 6e 64 65 6e 74 61 | 74 69 6f 6e 0a 60 65 6f | indenta|tion.`eo|
|00000280| 6c 27 20 20 3d 3d 20 65 | 6e 64 20 6f 66 20 6c 69 |l' == e|nd of li|
|00000290| 6e 65 20 5b 64 65 66 61 | 75 6c 74 5d 0a 60 62 6f |ne [defa|ult].`bo|
|000002a0| 6e 6c 27 20 3d 3d 20 62 | 65 67 69 6e 6e 69 6e 67 |nl' == b|eginning|
|000002b0| 20 6f 66 20 6e 65 78 74 | 20 6c 69 6e 65 0a 60 62 | of next| line.`b|
|000002c0| 6f 70 6c 27 20 3d 3d 20 | 62 65 67 69 6e 6e 69 6e |opl' == |beginnin|
|000002d0| 67 20 6f 66 20 70 72 65 | 76 69 6f 75 73 20 6c 69 |g of pre|vious li|
|000002e0| 6e 65 0a 0a 4f 70 74 69 | 6f 6e 61 6c 20 43 4f 4c |ne..Opti|onal COL|
|000002f0| 2d 50 20 6e 6f 6e 2d 6e | 69 6c 20 72 65 74 75 72 |-P non-n|il retur|
|00000300| 6e 73 20 60 63 75 72 72 | 65 6e 74 2d 63 6f 6c 75 |ns `curr|ent-colu|
|00000310| 6d 6e 27 20 69 6e 73 74 | 65 61 64 20 6f 66 20 63 |mn' inst|ead of c|
|00000320| 68 61 72 61 63 74 65 72 | 20 70 6f 73 69 74 69 6f |haracter| positio|
|00000330| 6e 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 72 |n...(def|alias 'r|
|00000340| 65 67 69 2d 70 6f 73 20 | 23 5b 28 26 6f 70 74 69 |egi-pos |#[(&opti|
|00000350| 6f 6e 61 6c 20 70 6f 73 | 69 74 69 6f 6e 20 63 6f |onal pos|ition co|
|00000360| 6c 2d 70 29 20 22 8a 08 | c1 3d 83 0d 00 c2 79 88 |l-p) "..|.=....y.|
|00000370| 82 34 00 08 c3 3d 83 19 | 00 c4 20 88 82 34 00 08 |.4...=..|.. ..4..|
|00000380| c5 3d 83 25 00 c6 79 88 | 82 34 00 08 c7 3d 83 31 |.=.%..y.|.4...=.1|
|00000390| 00 c8 79 88 82 34 00 c9 | 7f 88 0e 5c 6e 83 3d 00 |..y..4..|...\n.=.|
|000003a0| 69 82 3e 00 60 29 87 22 | 20 5b 70 6f 73 69 74 69 |i.>.`)."| [positi|
|000003b0| 6f 6e 20 62 6f 6c 20 30 | 20 62 6f 69 20 62 61 63 |on bol 0| boi bac|
|000003c0| 6b 2d 74 6f 2d 69 6e 64 | 65 6e 74 61 74 69 6f 6e |k-to-ind|entation|
|000003d0| 20 62 6f 6e 6c 20 31 20 | 62 6f 70 6c 20 2d 31 20 | bonl 1 |bopl -1 |
|000003e0| 6e 69 6c 20 63 6f 6c 2d | 70 5d 20 32 20 28 23 24 |nil col-|p] 2 (#$|
|000003f0| 20 2e 20 34 35 39 29 5d | 29 0a 23 40 32 30 34 20 | . 459)]|).#@204 |
|00000400| 42 75 69 6c 64 20 61 20 | 72 65 67 69 20 66 72 61 |Build a |regi fra|
|00000410| 6d 65 20 77 68 65 72 65 | 20 65 61 63 68 20 65 6c |me where| each el|
|00000420| 65 6d 65 6e 74 20 6f 66 | 20 50 52 45 44 4c 49 53 |ement of| PREDLIS|
|00000430| 54 20 61 70 70 65 61 72 | 73 20 65 78 61 63 74 6c |T appear|s exactl|
|00000440| 79 20 6f 6e 63 65 2e 0a | 54 68 65 20 66 72 61 6d |y once..|The fram|
|00000450| 65 20 63 6f 6e 74 61 69 | 6e 73 20 65 6c 65 6d 65 |e contai|ns eleme|
|00000460| 6e 74 73 20 77 68 65 72 | 65 20 65 61 63 68 20 6d |nts wher|e each m|
|00000470| 65 6d 62 65 72 20 6f 66 | 20 50 52 45 44 4c 49 53 |ember of| PREDLIS|
|00000480| 54 20 69 73 0a 61 73 73 | 6f 63 69 61 74 65 64 20 |T is.ass|ociated |
|00000490| 77 69 74 68 20 46 55 4e | 43 2c 20 61 6e 64 20 6f |with FUN|C, and o|
|000004a0| 70 74 69 6f 6e 61 6c 6c | 79 20 4e 45 47 41 54 45 |ptionall|y NEGATE|
|000004b0| 2d 50 20 61 6e 64 20 43 | 41 53 45 2d 46 4f 4c 44 |-P and C|ASE-FOLD|
|000004c0| 2d 53 45 41 52 43 48 2d | 50 2e 1f 0a 28 64 65 66 |-SEARCH-|P...(def|
|000004d0| 61 6c 69 61 73 20 27 72 | 65 67 69 2d 6d 61 70 63 |alias 'r|egi-mapc|
|000004e0| 61 72 20 23 5b 28 70 72 | 65 64 6c 69 73 74 20 66 |ar #[(pr|edlist f|
|000004f0| 75 6e 63 20 26 6f 70 74 | 69 6f 6e 61 6c 20 6e 65 |unc &opt|ional ne|
|00000500| 67 61 74 65 2d 70 20 63 | 61 73 65 2d 66 6f 6c 64 |gate-p c|ase-fold|
|00000510| 2d 73 65 61 72 63 68 2d | 70 29 20 22 c0 89 19 1a |-search-|p) "....|
|00000520| 0b 84 5c 66 00 5c 66 83 | 0f 00 0b 43 11 5c 66 83 |..\f.\f.|...C.\f.|
|00000530| 19 00 c5 09 5c 66 43 5c | 22 11 0e 06 83 41 00 0e |....\fC\|"....A..|
|00000540| 06 40 0e 07 44 1e 08 09 | 83 31 00 c5 0e 08 09 5c |.@..D...|.1.....\|
|00000550| 22 16 08 c5 5c 6e 0e 08 | 43 5c 22 12 0e 06 41 16 |"...\n..|C\"...A.|
|00000560| 06 29 82 19 00 5c 6e 2a | 87 22 20 5b 6e 69 6c 20 |.)...\n*|." [nil |
|00000570| 74 61 69 6c 20 66 72 61 | 6d 65 20 6e 65 67 61 74 |tail fra|me negat|
|00000580| 65 2d 70 20 63 61 73 65 | 2d 66 6f 6c 64 2d 73 65 |e-p case|-fold-se|
|00000590| 61 72 63 68 2d 70 20 61 | 70 70 65 6e 64 20 70 72 |arch-p a|ppend pr|
|000005a0| 65 64 6c 69 73 74 20 66 | 75 6e 63 20 65 6c 65 6d |edlist f|unc elem|
|000005b0| 65 6e 74 5d 20 33 20 28 | 23 24 20 2e 20 31 30 32 |ent] 3 (|#$ . 102|
|000005c0| 34 29 5d 29 0a 23 40 33 | 33 34 34 20 49 6e 74 65 |4)]).#@3|344 Inte|
|000005d0| 72 70 72 65 74 20 74 68 | 65 20 72 65 67 69 20 66 |rpret th|e regi f|
|000005e0| 72 61 6d 65 20 46 52 41 | 4d 45 2e 0a 49 66 20 6f |rame FRA|ME..If o|
|000005f0| 70 74 69 6f 6e 61 6c 20 | 53 54 41 52 54 20 61 6e |ptional |START an|
|00000600| 64 20 45 4e 44 20 61 72 | 65 20 73 75 70 70 6c 69 |d END ar|e suppli|
|00000610| 65 64 2c 20 74 68 65 79 | 20 69 6e 64 69 63 61 74 |ed, they| indicat|
|00000620| 65 20 74 68 65 20 72 65 | 67 69 6f 6e 20 6f 66 0a |e the re|gion of.|
|00000630| 69 6e 74 65 72 65 73 74 | 2c 20 61 6e 64 20 74 68 |interest|, and th|
|00000640| 65 20 62 75 66 66 65 72 | 20 69 73 20 6e 61 72 72 |e buffer| is narr|
|00000650| 6f 77 65 64 20 74 6f 20 | 74 68 65 20 62 65 67 69 |owed to |the begi|
|00000660| 6e 6e 69 6e 67 20 6f 66 | 20 74 68 65 20 6c 69 6e |nning of| the lin|
|00000670| 65 0a 63 6f 6e 74 61 69 | 6e 69 6e 67 20 53 54 41 |e.contai|ning STA|
|00000680| 52 54 2c 20 61 6e 64 20 | 62 65 67 69 6e 6e 69 6e |RT, and |beginnin|
|00000690| 67 20 6f 66 20 74 68 65 | 20 6c 69 6e 65 20 61 66 |g of the| line af|
|000006a0| 74 65 72 20 74 68 65 20 | 6c 69 6e 65 20 63 6f 6e |ter the |line con|
|000006b0| 74 61 69 6e 69 6e 67 0a | 45 4e 44 2e 20 20 4f 74 |taining.|END. Ot|
|000006c0| 68 65 72 77 69 73 65 2c | 20 70 6f 69 6e 74 20 61 |herwise,| point a|
|000006d0| 6e 64 20 6d 61 72 6b 20 | 61 72 65 20 6e 6f 74 20 |nd mark |are not |
|000006e0| 73 65 74 20 61 6e 64 20 | 70 72 6f 63 65 73 73 69 |set and |processi|
|000006f0| 6e 67 20 63 6f 6e 74 69 | 6e 75 65 73 0a 75 6e 74 |ng conti|nues.unt|
|00000700| 69 6c 20 79 6f 75 72 20 | 46 55 4e 43 20 72 65 74 |il your |FUNC ret|
|00000710| 75 72 6e 73 20 74 68 65 | 20 60 61 62 6f 72 74 27 |urns the| `abort'|
|00000720| 20 73 79 6d 62 6f 6c 20 | 28 73 65 65 20 62 65 6c | symbol |(see bel|
|00000730| 6f 77 29 2e 20 20 42 65 | 77 61 72 65 21 20 20 4e |ow). Be|ware! N|
|00000740| 6f 74 0a 73 75 70 70 6c | 79 69 6e 67 20 61 20 53 |ot.suppl|ying a S|
|00000750| 54 41 52 54 20 6f 72 20 | 45 4e 44 20 63 6f 75 6c |TART or |END coul|
|00000760| 64 20 70 75 74 20 79 6f | 75 20 69 6e 20 61 6e 20 |d put yo|u in an |
|00000770| 69 6e 66 69 6e 69 74 65 | 20 6c 6f 6f 70 2e 0a 0a |infinite| loop...|
|00000780| 41 20 72 65 67 69 20 66 | 72 61 6d 65 20 69 73 20 |A regi f|rame is |
|00000790| 61 20 6c 69 73 74 20 6f | 66 20 65 6e 74 72 69 65 |a list o|f entrie|
|000007a0| 73 20 6f 66 20 74 68 65 | 20 66 6f 72 6d 3a 0a 0a |s of the| form:..|
|000007b0| 20 20 20 20 20 28 50 52 | 45 44 20 46 55 4e 43 20 | (PR|ED FUNC |
|000007c0| 5b 4e 45 47 41 54 45 2d | 50 20 5b 43 41 53 45 2d |[NEGATE-|P [CASE-|
|000007d0| 46 4f 4c 44 2d 53 45 41 | 52 43 48 5d 5d 29 0a 0a |FOLD-SEA|RCH]])..|
|000007e0| 50 52 45 44 20 69 73 20 | 61 20 70 72 65 64 69 63 |PRED is |a predic|
|000007f0| 61 74 65 20 61 67 61 69 | 6e 73 74 20 77 68 69 63 |ate agai|nst whic|
|00000800| 68 20 65 61 63 68 20 6c | 69 6e 65 20 69 6e 20 74 |h each l|ine in t|
|00000810| 68 65 20 72 65 67 69 6f | 6e 20 69 73 20 74 65 73 |he regio|n is tes|
|00000820| 74 65 64 2c 0a 61 6e 64 | 20 69 66 20 61 20 6d 61 |ted,.and| if a ma|
|00000830| 74 63 68 20 6f 63 63 75 | 72 73 2c 20 46 55 4e 43 |tch occu|rs, FUNC|
|00000840| 20 69 73 20 60 65 76 61 | 6c 27 64 2e 20 20 50 6f | is `eva|l'd. Po|
|00000850| 69 6e 74 20 69 73 20 74 | 68 65 6e 20 6d 6f 76 65 |int is t|hen move|
|00000860| 64 20 74 6f 20 74 68 65 | 0a 62 65 67 69 6e 6e 69 |d to the|.beginni|
|00000870| 6e 67 20 6f 66 20 74 68 | 65 20 6e 65 78 74 20 6c |ng of th|e next l|
|00000880| 69 6e 65 2c 20 74 68 65 | 20 66 72 61 6d 65 20 69 |ine, the| frame i|
|00000890| 73 20 72 65 73 65 74 20 | 61 6e 64 20 63 68 65 63 |s reset |and chec|
|000008a0| 6b 69 6e 67 20 63 6f 6e | 74 69 6e 75 65 73 2e 0a |king con|tinues..|
|000008b0| 49 66 20 61 20 6d 61 74 | 63 68 20 64 6f 65 73 6e |If a mat|ch doesn|
|000008c0| 27 74 20 6f 63 63 75 72 | 2c 20 74 68 65 20 6e 65 |'t occur|, the ne|
|000008d0| 78 74 20 65 6e 74 72 79 | 20 69 73 20 63 68 65 63 |xt entry| is chec|
|000008e0| 6b 65 64 20 61 67 61 69 | 6e 73 74 20 74 68 65 0a |ked agai|nst the.|
|000008f0| 63 75 72 72 65 6e 74 20 | 6c 69 6e 65 20 75 6e 74 |current |line unt|
|00000900| 69 6c 20 61 6c 6c 20 65 | 6e 74 72 69 65 73 20 69 |il all e|ntries i|
|00000910| 6e 20 74 68 65 20 66 72 | 61 6d 65 20 61 72 65 20 |n the fr|ame are |
|00000920| 63 68 65 63 6b 65 64 2e | 20 20 41 74 20 74 68 69 |checked.| At thi|
|00000930| 73 0a 70 6f 69 6e 74 2c | 20 69 66 20 6e 6f 20 6d |s.point,| if no m|
|00000940| 61 74 63 68 20 6f 63 63 | 75 72 72 65 64 2c 20 74 |atch occ|urred, t|
|00000950| 68 65 20 66 72 61 6d 65 | 20 69 73 20 72 65 73 65 |he frame| is rese|
|00000960| 74 20 61 6e 64 20 70 6f | 69 6e 74 20 69 73 20 6d |t and po|int is m|
|00000970| 6f 76 65 64 20 74 6f 0a | 74 68 65 20 6e 65 78 74 |oved to.|the next|
|00000980| 20 6c 69 6e 65 2e 20 20 | 43 68 65 63 6b 69 6e 67 | line. |Checking|
|00000990| 20 63 6f 6e 74 69 6e 75 | 65 73 20 75 6e 74 69 6c | continu|es until|
|000009a0| 20 65 76 65 72 79 20 6c | 69 6e 65 20 69 6e 20 74 | every l|ine in t|
|000009b0| 68 65 20 72 65 67 69 6f | 6e 20 69 73 0a 63 68 65 |he regio|n is.che|
|000009c0| 63 6b 65 64 2e 20 20 4f | 70 74 69 6f 6e 61 6c 20 |cked. O|ptional |
|000009d0| 4e 45 47 41 54 45 2d 50 | 20 69 6e 76 65 72 74 73 |NEGATE-P| inverts|
|000009e0| 20 74 68 65 20 72 65 73 | 75 6c 74 20 6f 66 20 50 | the res|ult of P|
|000009f0| 52 45 44 20 62 65 66 6f | 72 65 20 46 55 4e 43 20 |RED befo|re FUNC |
|00000a00| 69 73 0a 63 61 6c 6c 65 | 64 20 61 6e 64 20 60 63 |is.calle|d and `c|
|00000a10| 61 73 65 2d 66 6f 6c 64 | 2d 73 65 61 72 63 68 27 |ase-fold|-search'|
|00000a20| 20 69 73 20 62 6f 75 6e | 64 20 74 6f 20 74 68 65 | is boun|d to the|
|00000a30| 20 6f 70 74 69 6f 6e 61 | 6c 20 76 61 6c 75 65 20 | optiona|l value |
|00000a40| 6f 66 0a 43 41 53 45 2d | 46 4f 4c 44 2d 53 45 41 |of.CASE-|FOLD-SEA|
|00000a50| 52 43 48 20 66 6f 72 20 | 74 68 65 20 50 52 45 44 |RCH for |the PRED|
|00000a60| 20 63 68 65 63 6b 2e 0a | 0a 50 52 45 44 20 63 61 | check..|.PRED ca|
|00000a70| 6e 20 62 65 20 61 20 73 | 74 72 69 6e 67 2c 20 76 |n be a s|tring, v|
|00000a80| 61 72 69 61 62 6c 65 2c | 20 66 75 6e 63 74 69 6f |ariable,| functio|
|00000a90| 6e 20 6f 72 20 6f 6e 65 | 20 6f 66 20 74 68 65 20 |n or one| of the |
|00000aa0| 66 6f 6c 6c 6f 77 69 6e | 67 0a 73 79 6d 62 6f 6c |followin|g.symbol|
|00000ab0| 73 3a 20 74 2c 20 6e 69 | 6c 2c 20 60 62 65 67 69 |s: t, ni|l, `begi|
|00000ac0| 6e 27 2c 20 60 65 6e 64 | 27 2c 20 61 6e 64 20 60 |n', `end|', and `|
|00000ad0| 65 76 65 72 79 27 2e 20 | 20 49 66 20 50 52 45 44 |every'. | If PRED|
|00000ae0| 20 69 73 20 61 20 73 74 | 72 69 6e 67 2c 20 6f 72 | is a st|ring, or|
|00000af0| 0a 61 20 76 61 72 69 61 | 62 6c 65 20 6f 72 20 6c |.a varia|ble or l|
|00000b00| 69 73 74 20 74 68 61 74 | 20 65 76 61 6c 75 61 74 |ist that| evaluat|
|00000b10| 65 73 20 74 6f 20 61 20 | 73 74 72 69 6e 67 2c 20 |es to a |string, |
|00000b20| 69 74 20 69 73 20 69 6e | 74 65 72 70 72 65 74 65 |it is in|terprete|
|00000b30| 64 20 61 73 20 61 0a 72 | 65 67 75 6c 61 72 20 65 |d as a.r|egular e|
|00000b40| 78 70 72 65 73 73 69 6f | 6e 20 61 6e 64 20 69 73 |xpressio|n and is|
|00000b50| 20 6d 61 74 63 68 65 64 | 20 61 67 61 69 6e 73 74 | matched| against|
|00000b60| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 6c 69 6e | the cur|rent lin|
|00000b70| 65 20 28 66 72 6f 6d 20 | 74 68 65 0a 62 65 67 69 |e (from |the.begi|
|00000b80| 6e 6e 69 6e 67 29 20 75 | 73 69 6e 67 20 60 6c 6f |nning) u|sing `lo|
|00000b90| 6f 6b 69 6e 67 2d 61 74 | 27 2e 20 20 49 66 20 50 |oking-at|'. If P|
|00000ba0| 52 45 44 20 64 6f 65 73 | 20 6e 6f 74 20 65 76 61 |RED does| not eva|
|00000bb0| 6c 75 61 74 65 20 74 6f | 20 61 20 73 74 72 69 6e |luate to| a strin|
|00000bc0| 67 2c 0a 69 74 20 69 73 | 20 69 6e 74 65 72 70 72 |g,.it is| interpr|
|00000bd0| 65 74 65 64 20 61 73 20 | 61 20 62 69 6e 61 72 79 |eted as |a binary|
|00000be0| 20 76 61 6c 75 65 20 28 | 6e 69 6c 20 6f 72 20 6e | value (|nil or n|
|00000bf0| 6f 6e 2d 6e 69 6c 29 2e | 0a 0a 50 52 45 44 20 63 |on-nil).|..PRED c|
|00000c00| 61 6e 20 61 6c 73 6f 20 | 62 65 20 6f 6e 65 20 6f |an also |be one o|
|00000c10| 66 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |f the fo|llowing |
|00000c20| 73 79 6d 62 6f 6c 73 3a | 0a 0a 74 20 20 20 20 20 |symbols:|..t |
|00000c30| 20 20 2d 2d 20 61 6c 77 | 61 79 73 20 70 72 6f 64 | -- alw|ays prod|
|00000c40| 75 63 65 73 20 61 20 74 | 72 75 65 20 6f 75 74 63 |uces a t|rue outc|
|00000c50| 6f 6d 65 0a 60 62 65 67 | 69 6e 27 20 2d 2d 20 61 |ome.`beg|in' -- a|
|00000c60| 6c 77 61 79 73 20 65 78 | 65 63 75 74 65 73 20 62 |lways ex|ecutes b|
|00000c70| 65 66 6f 72 65 20 61 6e | 79 74 68 69 6e 67 20 65 |efore an|ything e|
|00000c80| 6c 73 65 0a 60 65 6e 64 | 27 20 20 20 2d 2d 20 61 |lse.`end|' -- a|
|00000c90| 6c 77 61 79 73 20 65 78 | 65 63 75 74 65 73 20 61 |lways ex|ecutes a|
|00000ca0| 66 74 65 72 20 65 76 65 | 72 79 74 68 69 6e 67 20 |fter eve|rything |
|00000cb0| 65 6c 73 65 0a 60 65 76 | 65 72 79 27 20 2d 2d 20 |else.`ev|ery' -- |
|00000cc0| 65 78 65 63 75 74 65 20 | 61 66 74 65 72 20 66 72 |execute |after fr|
|00000cd0| 61 6d 65 20 69 73 20 6d | 61 74 63 68 65 64 20 6f |ame is m|atched o|
|00000ce0| 6e 20 61 20 6c 69 6e 65 | 0a 0a 4e 6f 74 65 20 74 |n a line|..Note t|
|00000cf0| 68 61 74 20 4e 45 47 41 | 54 45 2d 50 20 61 6e 64 |hat NEGA|TE-P and|
|00000d00| 20 43 41 53 45 2d 46 4f | 4c 44 2d 53 45 41 52 43 | CASE-FO|LD-SEARC|
|00000d10| 48 20 61 72 65 20 6d 65 | 61 6e 69 6e 67 6c 65 73 |H are me|aningles|
|00000d20| 73 20 69 66 20 50 52 45 | 44 20 69 73 20 6f 6e 65 |s if PRE|D is one|
|00000d30| 0a 6f 66 20 74 68 65 73 | 65 20 73 70 65 63 69 61 |.of thes|e specia|
|00000d40| 6c 20 73 79 6d 62 6f 6c | 73 2e 20 20 4f 6e 6c 79 |l symbol|s. Only|
|00000d50| 20 74 68 65 20 66 69 72 | 73 74 20 6f 63 63 75 72 | the fir|st occur|
|00000d60| 72 65 6e 63 65 20 6f 66 | 20 65 61 63 68 20 73 79 |rence of| each sy|
|00000d70| 6d 62 6f 6c 20 69 6e 0a | 61 20 66 72 61 6d 65 20 |mbol in.|a frame |
|00000d80| 65 6e 74 72 79 20 69 73 | 20 75 73 65 64 2c 20 74 |entry is| used, t|
|00000d90| 68 65 20 72 65 73 74 20 | 61 72 65 20 69 67 6e 6f |he rest |are igno|
|00000da0| 72 65 64 2e 0a 0a 59 6f | 75 72 20 46 55 4e 43 20 |red...Yo|ur FUNC |
|00000db0| 63 61 6e 20 72 65 74 75 | 72 6e 20 76 61 6c 75 65 |can retu|rn value|
|00000dc0| 73 20 77 68 69 63 68 20 | 63 6f 6e 74 72 6f 6c 20 |s which |control |
|00000dd0| 72 65 67 69 20 70 72 6f | 63 65 73 73 69 6e 67 2e |regi pro|cessing.|
|00000de0| 20 20 49 66 20 61 20 6c | 69 73 74 0a 69 73 20 72 | If a l|ist.is r|
|00000df0| 65 74 75 72 6e 65 64 20 | 66 72 6f 6d 20 79 6f 75 |eturned |from you|
|00000e00| 72 20 66 75 6e 63 74 69 | 6f 6e 2c 20 69 74 20 63 |r functi|on, it c|
|00000e10| 61 6e 20 63 6f 6e 74 61 | 69 6e 20 61 6e 79 20 63 |an conta|in any c|
|00000e20| 6f 6d 62 69 6e 61 74 69 | 6f 6e 20 6f 66 20 74 68 |ombinati|on of th|
|00000e30| 65 0a 66 6f 6c 6c 6f 77 | 69 6e 67 20 65 6c 65 6d |e.follow|ing elem|
|00000e40| 65 6e 74 73 3a 0a 0a 74 | 68 65 20 73 79 6d 62 6f |ents:..t|he symbo|
|00000e50| 6c 20 60 63 6f 6e 74 69 | 6e 75 65 27 0a 20 20 20 |l `conti|nue'. |
|00000e60| 20 20 54 65 6c 6c 73 20 | 72 65 67 69 20 74 6f 20 | Tells |regi to |
|00000e70| 63 6f 6e 74 69 6e 75 65 | 20 70 72 6f 63 65 73 73 |continue| process|
|00000e80| 69 6e 67 20 66 72 61 6d | 65 2d 65 6e 74 72 69 65 |ing fram|e-entrie|
|00000e90| 73 20 61 66 74 65 72 20 | 61 20 6d 61 74 63 68 2c |s after |a match,|
|00000ea0| 0a 20 20 20 20 20 69 6e | 73 74 65 61 64 20 6f 66 |. in|stead of|
|00000eb0| 20 72 65 73 65 74 74 69 | 6e 67 20 74 6f 20 74 68 | resetti|ng to th|
|00000ec0| 65 20 66 69 72 73 74 20 | 65 6e 74 72 79 20 61 6e |e first |entry an|
|00000ed0| 64 20 61 64 76 61 6e 63 | 69 6e 67 20 74 6f 20 74 |d advanc|ing to t|
|00000ee0| 68 65 20 6e 65 78 74 0a | 20 20 20 20 20 6c 69 6e |he next.| lin|
|00000ef0| 65 2c 20 61 73 20 69 73 | 20 74 68 65 20 64 65 66 |e, as is| the def|
|00000f00| 61 75 6c 74 20 62 65 68 | 61 76 69 6f 72 2e 20 20 |ault beh|avior. |
|00000f10| 57 68 65 6e 20 72 65 74 | 75 72 6e 69 6e 67 20 74 |When ret|urning t|
|00000f20| 68 69 73 20 73 79 6d 62 | 6f 6c 2c 0a 20 20 20 20 |his symb|ol,. |
|00000f30| 20 79 6f 75 20 6d 75 73 | 74 20 74 61 6b 65 20 63 | you mus|t take c|
|00000f40| 61 72 65 20 6e 6f 74 20 | 74 6f 20 65 6e 74 65 72 |are not |to enter|
|00000f50| 20 61 6e 20 69 6e 66 69 | 6e 69 74 65 20 6c 6f 6f | an infi|nite loo|
|00000f60| 70 2e 0a 0a 74 68 65 20 | 73 79 6d 62 6f 6c 20 60 |p...the |symbol `|
|00000f70| 61 62 6f 72 74 27 0a 20 | 20 20 20 20 54 65 6c 6c |abort'. | Tell|
|00000f80| 73 20 72 65 67 69 20 74 | 6f 20 74 65 72 6d 69 6e |s regi t|o termin|
|00000f90| 61 74 65 20 70 72 6f 63 | 65 73 73 69 6e 67 20 74 |ate proc|essing t|
|00000fa0| 68 69 73 20 66 72 61 6d | 65 2e 20 20 61 6e 79 20 |his fram|e. any |
|00000fb0| 65 6e 64 0a 20 20 20 20 | 20 66 72 61 6d 65 2d 65 |end. | frame-e|
|00000fc0| 6e 74 72 79 20 69 73 20 | 73 74 69 6c 6c 20 70 72 |ntry is |still pr|
|00000fd0| 6f 63 65 73 73 65 64 2e | 0a 0a 74 68 65 20 6c 69 |ocessed.|..the li|
|00000fe0| 73 74 20 60 28 66 72 61 | 6d 65 20 2e 20 4e 45 57 |st `(fra|me . NEW|
|00000ff0| 46 52 41 4d 45 29 27 0a | 20 20 20 20 20 54 65 6c |FRAME)'.| Tel|
|00001000| 6c 73 20 72 65 67 69 20 | 74 6f 20 75 73 65 20 4e |ls regi |to use N|
|00001010| 45 57 46 52 41 4d 45 20 | 61 73 20 69 74 73 20 63 |EWFRAME |as its c|
|00001020| 75 72 72 65 6e 74 20 66 | 72 61 6d 65 2e 20 20 49 |urrent f|rame. I|
|00001030| 6e 20 6f 74 68 65 72 20 | 77 6f 72 64 73 2c 0a 20 |n other |words,. |
|00001040| 20 20 20 20 79 6f 75 72 | 20 46 55 4e 43 20 63 61 | your| FUNC ca|
|00001050| 6e 20 6d 6f 64 69 66 79 | 20 74 68 65 20 65 78 65 |n modify| the exe|
|00001060| 63 75 74 69 6e 67 20 72 | 65 67 69 20 66 72 61 6d |cuting r|egi fram|
|00001070| 65 20 6f 6e 20 74 68 65 | 20 66 6c 79 2e 0a 0a 74 |e on the| fly...t|
|00001080| 68 65 20 6c 69 73 74 20 | 60 28 73 74 65 70 20 2e |he list |`(step .|
|00001090| 20 53 54 45 50 29 27 0a | 20 20 20 20 20 54 65 6c | STEP)'.| Tel|
|000010a0| 6c 73 20 72 65 67 69 20 | 74 6f 20 6d 6f 76 65 20 |ls regi |to move |
|000010b0| 53 54 45 50 20 6e 75 6d | 62 65 72 20 6f 66 20 6c |STEP num|ber of l|
|000010c0| 69 6e 65 73 20 66 6f 72 | 77 61 72 64 20 64 75 72 |ines for|ward dur|
|000010d0| 69 6e 67 20 6e 6f 72 6d | 61 6c 0a 20 20 20 20 20 |ing norm|al. |
|000010e0| 70 72 6f 63 65 73 73 69 | 6e 67 2e 20 20 42 79 20 |processi|ng. By |
|000010f0| 64 65 66 61 75 6c 74 2c | 20 72 65 67 69 20 6d 6f |default,| regi mo|
|00001100| 76 65 73 20 66 6f 72 77 | 61 72 64 20 31 20 6c 69 |ves forw|ard 1 li|
|00001110| 6e 65 2e 20 20 53 54 45 | 50 20 63 61 6e 20 62 65 |ne. STE|P can be|
|00001120| 0a 20 20 20 20 20 6e 65 | 67 61 74 69 76 65 2c 20 |. ne|gative, |
|00001130| 62 75 74 20 62 65 20 63 | 61 72 65 66 75 6c 20 6f |but be c|areful o|
|00001140| 66 20 69 6e 66 69 6e 69 | 74 65 20 6c 6f 6f 70 73 |f infini|te loops|
|00001150| 2e 0a 0a 59 6f 75 20 73 | 68 6f 75 6c 64 20 75 73 |...You s|hould us|
|00001160| 75 61 6c 6c 79 20 74 61 | 6b 65 20 63 61 72 65 20 |ually ta|ke care |
|00001170| 74 6f 20 65 78 70 6c 69 | 63 69 74 6c 79 20 72 65 |to expli|citly re|
|00001180| 74 75 72 6e 20 6e 69 6c | 20 66 72 6f 6d 20 79 6f |turn nil| from yo|
|00001190| 75 72 0a 66 75 6e 63 74 | 69 6f 6e 20 69 66 20 6e |ur.funct|ion if n|
|000011a0| 6f 20 61 63 74 69 6f 6e | 20 69 73 20 74 6f 20 74 |o action| is to t|
|000011b0| 61 6b 65 20 70 6c 61 63 | 65 2e 20 20 59 6f 75 72 |ake plac|e. Your|
|000011c0| 20 46 55 4e 43 20 77 69 | 6c 6c 20 61 6c 77 61 79 | FUNC wi|ll alway|
|000011d0| 73 20 62 65 0a 60 65 76 | 61 6c 27 65 64 2e 20 20 |s be.`ev|al'ed. |
|000011e0| 54 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 76 61 |The foll|owing va|
|000011f0| 72 69 61 62 6c 65 73 20 | 77 69 6c 6c 20 62 65 20 |riables |will be |
|00001200| 74 65 6d 70 6f 72 61 72 | 69 6c 79 20 62 6f 75 6e |temporar|ily boun|
|00001210| 64 20 74 6f 20 73 6f 6d | 65 0a 75 73 65 66 75 6c |d to som|e.useful|
|00001220| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 3a 0a 0a 60 | informa|tion:..`|
|00001230| 63 75 72 6c 69 6e 65 27 | 0a 20 20 20 20 20 74 68 |curline'|. th|
|00001240| 65 20 63 75 72 72 65 6e | 74 20 6c 69 6e 65 20 69 |e curren|t line i|
|00001250| 6e 20 74 68 65 20 62 75 | 66 66 65 72 2c 20 61 73 |n the bu|ffer, as|
|00001260| 20 61 20 73 74 72 69 6e | 67 0a 0a 60 63 75 72 66 | a strin|g..`curf|
|00001270| 72 61 6d 65 27 0a 20 20 | 20 20 20 74 68 65 20 66 |rame'. | the f|
|00001280| 75 6c 6c 2c 20 63 75 72 | 72 65 6e 74 20 66 72 61 |ull, cur|rent fra|
|00001290| 6d 65 20 62 65 69 6e 67 | 20 65 78 65 63 75 74 65 |me being| execute|
|000012a0| 64 0a 0a 60 63 75 72 65 | 6e 74 72 79 27 0a 20 20 |d..`cure|ntry'. |
|000012b0| 20 20 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 66 | the c|urrent f|
|000012c0| 72 61 6d 65 20 65 6e 74 | 72 79 20 62 65 69 6e 67 |rame ent|ry being|
|000012d0| 20 65 78 65 63 75 74 65 | 64 2e 1f 0a 28 64 65 66 | execute|d...(def|
|000012e0| 61 6c 69 61 73 20 27 72 | 65 67 69 2d 69 6e 74 65 |alias 'r|egi-inte|
|000012f0| 72 70 72 65 74 20 23 5b | 28 66 72 61 6d 65 20 26 |rpret #[|(frame &|
|00001300| 6f 70 74 69 6f 6e 61 6c | 20 73 74 61 72 74 20 65 |optional| start e|
|00001310| 6e 64 29 20 22 8a 8c c0 | 89 89 89 89 89 19 1a 1b |nd) "...|........|
|00001320| 1c 1d 1e 06 0e 07 83 3a | 00 0e 08 83 3a 00 0e 07 |.......:|....:...|
|00001330| 1e 09 0e 07 0e 08 5e 89 | 1e 07 0e 08 5d 89 1e 08 |......^.|....]...|
|00001340| 62 88 ca cb 21 0e 07 62 | 88 ca cc 21 7d 88 2b cd |b...!..b|...!}.+.|
|00001350| ce 0e 0f 5c 22 88 d0 0e | 06 21 88 5c 6e 13 09 84 |...\"...|.!.\n...|
|00001360| 79 00 6d 84 79 00 0b 40 | 89 1e 11 40 1e 12 0e 11 |y.m.y..@|...@....|
|00001370| 41 40 1e 13 d4 0e 11 38 | 1e 15 d6 0e 11 38 1e 17 |A@.....8|.....8..|
|00001380| c0 1e 18 d9 da 8d 88 2e | 06 d0 5c 66 21 88 82 47 |........|..\f!..G|
|00001390| 00 d0 0d 21 2e 08 87 22 | 20 5b 6e 69 6c 20 64 6f |...!..."| [nil do|
|000013a0| 6e 65 70 20 77 6f 72 6b | 69 6e 67 2d 66 72 61 6d |nep work|ing-fram|
|000013b0| 65 20 63 75 72 72 65 6e | 74 2d 66 72 61 6d 65 20 |e curren|t-frame |
|000013c0| 65 76 65 72 79 2d 74 61 | 67 20 65 6e 64 2d 74 61 |every-ta|g end-ta|
|000013d0| 67 20 62 65 67 69 6e 2d | 74 61 67 20 73 74 61 72 |g begin-|tag star|
|000013e0| 74 20 65 6e 64 20 74 73 | 74 61 72 74 20 72 65 67 |t end ts|tart reg|
|000013f0| 69 2d 70 6f 73 20 62 6f | 6e 6c 20 62 6f 6c 20 6d |i-pos bo|nl bol m|
|00001400| 61 70 63 61 72 20 23 5b | 28 65 6e 74 72 79 29 20 |apcar #[|(entry) |
|00001410| 22 08 40 08 41 40 19 89 | 1a c3 3d 83 13 00 09 89 |".@.A@..|..=.....|
|00001420| 14 82 36 00 5c 6e c5 3d | 83 20 00 09 89 16 06 82 |..6.\n.=|. ......|
|00001430| 36 00 5c 6e c7 3d 83 2d | 00 09 89 16 08 82 36 00 |6.\n.=.-|......6.|
|00001440| c9 0e 5c 6e 08 43 5c 22 | 89 16 5c 6e 2a 87 22 20 |..\n.C\"|..\n*." |
|00001450| 5b 65 6e 74 72 79 20 66 | 75 6e 63 20 70 72 65 64 |[entry f|unc pred|
|00001460| 20 62 65 67 69 6e 20 62 | 65 67 69 6e 2d 74 61 67 | begin b|egin-tag|
|00001470| 20 65 6e 64 20 65 6e 64 | 2d 74 61 67 20 65 76 65 | end end|-tag eve|
|00001480| 72 79 20 65 76 65 72 79 | 2d 74 61 67 20 61 70 70 |ry every|-tag app|
|00001490| 65 6e 64 20 77 6f 72 6b | 69 6e 67 2d 66 72 61 6d |end work|ing-fram|
|000014a0| 65 5d 20 34 5d 20 66 72 | 61 6d 65 20 65 76 61 6c |e] 4] fr|ame eval|
|000014b0| 20 65 6e 74 72 79 20 70 | 72 65 64 20 66 75 6e 63 | entry p|red func|
|000014c0| 20 32 20 6e 65 67 61 74 | 65 2d 70 20 33 20 63 61 | 2 negat|e-p 3 ca|
|000014d0| 73 65 2d 66 6f 6c 64 2d | 73 65 61 72 63 68 20 6d |se-fold-|search m|
|000014e0| 61 74 63 68 2d 70 20 72 | 65 67 69 2d 74 68 72 6f |atch-p r|egi-thro|
|000014f0| 77 2d 74 6f 70 20 28 62 | 79 74 65 2d 63 6f 64 65 |w-top (b|yte-code|
|00001500| 20 22 08 84 11 00 09 10 | c2 79 88 c3 c4 c5 5c 22 | "......|.y....\"|
|00001510| 88 82 5c 22 00 c6 0e 07 | 21 89 16 08 3b 83 5c 22 |..\"....|!...;.\"|
|00001520| 00 c9 0e 08 21 16 08 0e | 5c 6e 83 2c 00 0e 08 3f |....!...|\n.,...?|
|00001530| 16 08 0e 08 83 85 00 cb | cc 21 cb cd 21 7b 1e 0e |........|.!..!{..|
|00001540| 08 1e 0f 0e 10 1e 11 c6 | 0e 12 21 1e 13 d4 0e 13 |........|..!.....|
|00001550| 9e 41 86 50 00 c2 1e 14 | d5 0e 13 9e 83 5f 00 d5 |.A.P....|....._..|
|00001560| 0e 13 9e 41 11 d6 0e 13 | 3e 83 6c 00 08 41 10 82 |...A....|>.l..A..|
|00001570| 72 00 0e 14 79 88 09 10 | d7 0e 13 3e 83 81 00 c5 |r...y...|...>....|
|00001580| 16 18 c3 c4 c5 5c 22 88 | 2d 82 88 00 08 41 10 c2 |.....\".|-....A..|
|00001590| 87 22 20 5b 63 75 72 72 | 65 6e 74 2d 66 72 61 6d |." [curr|ent-fram|
|000015a0| 65 20 77 6f 72 6b 69 6e | 67 2d 66 72 61 6d 65 20 |e workin|g-frame |
|000015b0| 31 20 74 68 72 6f 77 20 | 72 65 67 69 2d 74 68 72 |1 throw |regi-thr|
|000015c0| 6f 77 2d 74 6f 70 20 74 | 20 65 76 61 6c 20 70 72 |ow-top t| eval pr|
|000015d0| 65 64 20 6d 61 74 63 68 | 2d 70 20 6c 6f 6f 6b 69 |ed match|-p looki|
|000015e0| 6e 67 2d 61 74 20 6e 65 | 67 61 74 65 2d 70 20 72 |ng-at ne|gate-p r|
|000015f0| 65 67 69 2d 70 6f 73 20 | 62 6f 6c 20 65 6f 6c 20 |egi-pos |bol eol |
|00001600| 63 75 72 6c 69 6e 65 20 | 63 75 72 66 72 61 6d 65 |curline |curframe|
|00001610| 20 65 6e 74 72 79 20 63 | 75 72 65 6e 74 72 79 20 | entry c|urentry |
|00001620| 66 75 6e 63 20 72 65 73 | 75 6c 74 20 73 74 65 70 |func res|ult step|
|00001630| 20 66 72 61 6d 65 20 63 | 6f 6e 74 69 6e 75 65 20 | frame c|ontinue |
|00001640| 61 62 6f 72 74 20 64 6f | 6e 65 70 5d 20 33 29 5d |abort do|nep] 3)]|
|00001650| 20 37 20 28 23 24 20 2e | 20 31 34 38 34 29 5d 29 | 7 (#$ .| 1484)])|
|00001660| 0a 28 70 72 6f 76 69 64 | 65 20 28 71 75 6f 74 65 |.(provid|e (quote|
|00001670| 20 72 65 67 69 29 29 0a | | regi)).| |
+--------+-------------------------+-------------------------+--------+--------+